package Homework;

import java.util.Scanner;

/**
 * @program: Java_Study
 * @author: Xiaofan
 * @createTime: 2021-07-06 19:48
 * @description: Functions of this class is 找出最大数最小数
 **/
public class B1 {
    public static void main(String args[]){
        Scanner scanner=new Scanner(System.in);
        while (scanner.hasNext()){
            int a=scanner.nextInt();
            int b=scanner.nextInt();
            int c=scanner.nextInt();
            System.out.println(MaxNum(a,b,c)+","+MinNum(a,b,c));
        }
    }
    private static int MaxNum(int a,int b,int c){
        return (a>b)?(a>c?a:c):(b>c?b:c);
    }
    private static int MinNum(int a,int b,int c){
        return (a<b)?(a<c?a:c):(b<c?b:c);
    }
}